export function getLastHistoryByChapterId(params){
	return request({
		url:'/api//course/history/getLastHistoryByChapterId',
		methods:'GET',
		data:params,
		header:{
			'Authorization':Decrypt(localStorage.getItem('token'))
		}
		
	})
}
export function recordHistory(params){
	return request({
		url:'/api/course/history/recordHistory',
		methods:'POST',
		params,
		header:{
			'Authorization':Decrypt(localStorage.getItem('token'))
		}
	})
}
export function playCourse(params){
	return request({
		url:'/api//player/play',
		methods:'GET',
		params:params,
		header:{
			'Authorization':Decrypt(localStorage.getItem('token'))
		}
	})
}
export function createToken(){
	return request({
		url:'/api//token/createToken',
		methods:'POST'
	})
}
export function addFavorite(params){
	return request({
		url:'/api/favorite/addFavorite',
		methods:'POST',
		data:params,
		header:{
			'Authorization':Decrypt(localStorage.getItem('token'));
			'token':token
		}
	})
}
export function deleteFavorite(params){
	return request({
		url:'/api/favorite/deleteFavorite',
		methods:'GET',
		params:params,
		header:{
			'Authorization':Decrypt(localStorage.getItem('token'))
		}
	})
}
export function getShopCarList(params){
	return request({
		url:'/api/shopcar/getShopCarList',
		methods:'GET',
		header:{
			'Authorization':Decrypt(localStorage.getItem('token'))
		}
	})
}
export function deleteShopCar(params){
	return request({
		url:'/api//shopcar/deleteShopCar',
		methods:'GET',
		header:{
			'Authorization': Decrypt(localStorage.getItem('token')),
			'token':token
		}
	})
}